package com.ndp.fb.enums.connectionobject;

import lombok.Getter;

/**
 * Created by sisi.chen on 2016/3/7.
 */
@Getter
public enum ConnectionObjectType {
    Page(1),
    Application(2),
    Events(3),
    Place(6),
    Domains(7);

    private int type;
   private ConnectionObjectType(int type){
       this.type = type;
   }

    public static ConnectionObjectType getType(int type) {
        for (ConnectionObjectType c : ConnectionObjectType.values()) {
            if (c.type == type) {
                return c;
            }
        }
        return null;
    }

}
